package com.jiang.demo.depotstable.dds.datasource;

/**
 * @author jiangzhe
 * @create 2021/5/11 14:29
 */
public class DSContextHolder {
    private static final ThreadLocal<String> contextHolder = new ThreadLocal<>();

    public static synchronized void setDBType(String dbType){
        contextHolder.set(dbType);
    }

    public static String getDBType(){
        return contextHolder.get();
    }
}
